var base = require('./base');
var ObjectId = base.ObjectId;
var TestScheme = new base.Schema({
	id:{type:Number,default:0},
	num:Number
});
TestScheme.index({
	id: 1
}, {
	"background": true
}); //设置索引  
var TestEntity = base.mongoose.model('TestEntity', TestScheme, 'test'); //指定在数据库中的collection名称为user  
module.exports = TestEntity; //导出实体